package com.lbb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbb.common.utils.PageUtils;
import com.lbb.mall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lbb
 * @email liubin13218570325@qq.com
 * @date 2021-08-12 10:18:11
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);


    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     *  利用catelogId查完整路径【父亲，儿子，孙子】
     * */
    Long[] findCateLogPath(Long catelogId);

    void saveCascade(CategoryEntity category);

}

